﻿@model ASP.NetAjaxApplication.Models.LoginModel

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Log in</title>
    <link href="~/Content/default.css" rel="stylesheet" />
</head>
<body>
    <section id="loginForm">
        <div class="login-logo">
            <img src="@Url.Content("~/Images/CR_logo.png")"/>
        </div>

        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
        {
            @Html.AntiForgeryToken()
            <fieldset>
                <table>
                    <tr>
                        <td>
                            @Html.LabelFor(m => m.UserName)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.UserName)
                            @Html.ValidationMessageFor(m => m.UserName)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.LabelFor(m => m.Password)
                        </td>
                        <td>
                            @Html.PasswordFor(m => m.Password)
                            @Html.ValidationMessageFor(m => m.Password)
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <button type="submit">Log in</button>
                        </td>
                    </tr>
                </table>
            </fieldset>
            
            <div class="forgot-password">
                <a href="#">Forgot my password</a>
            </div>
            
            <div>
                <p>Please use username/password: <i><b>admin/admin</b></i> to login</p>
                @Html.ValidationSummary(true)
            </div>
            
            <div>
                <p class="version">Harmony Version 1.0</p>
            </div>
        }
    </section>
</body>
</html>
